//
//  Button.m
//  花式练习
//
//  Created by lucioronaldo on 16/5/14.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "Button.h"


@implementation Button

-(id)initDCPathButtonWithSubButtons:(NSInteger)buttonCount totalRadius:(CGFloat)totalRadius centerRadius:(NSInteger)centerRadius subRadius:(CGFloat)subRadius centerImage:(NSString *)centerImageName centerBackground:(NSString *)centerBackgroundName subImages:(void (^)(Button *))imageBlock subImageBackground:(NSString *)subImageBackgroundName inLocationX:(CGFloat)xAxis locationY:(CGFloat)yAxis toParentView:(UIView *)parentView{
    parentView == nil ? (self.parentView = parentView):(self.parentView = parentView);
    xAxis == 0 ? (self.xAxis = kDCPathButtonCurrentFrameWidth / 2) : (self.xAxis = xAxis);
    yAxis == 0 ? (self.yAxis = kDCPathButtonCurrentFrameHeight / 2) : (self.yAxis = yAxis);
    self.buttonCount = buttonCount;
    self.totalRadius = totalRadius;
    self.subRadius = subRadius;
    _expanded = NO;
    kDCPathButtonSubButtonBirthLocation = CGPointMake(-kDCPathButtonCurrentFrameWidth / 2, -kDCPathButtonCurrentFrameHeight / 2);
    kDCPathBUttonSubButtonFinalLocation = CGPointMake(self.xAxis, self.yAxis);
    if (self = [super initWithFrame:self.parentView.bounds]) {
        
        
    }
    

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
